package com.dmatek.uwb.packet.bean;

import com.dmatek.uwb.xml.dom.bean.Point;
/***
 * 
 * @author zf
 * @data 2019年6月18日 下午3:50:55
 * @Description
 *  交点类
 */
public final class CrossPoint {
	private Point[] points; // 交点
	private SectionSituation sectionSituation;// 交点情况
	public CrossPoint() {
		super();
	}
	public CrossPoint(Point...points) {
		super();
		this.points = points;
		if(null == points || points.length <= 0) {
			this.sectionSituation = SectionSituation.NO;
		} else if(points.length >= 2) {
			this.sectionSituation = SectionSituation.TT2;
		} else {
			this.sectionSituation = SectionSituation.TT1;
		}
	}
	public Point[] getPoints() {
		return points;
	}
	public void setPoints(Point[] points) {
		this.points = points;
	}
	public SectionSituation getSectionSituation() {
		return sectionSituation;
	}
	public void setSectionSituation(SectionSituation sectionSituation) {
		this.sectionSituation = sectionSituation;
	}
	public enum SectionSituation {
		TT1, // 交于1点
		TT2, // 交于2点
		NO	 // 没有交点
	}
}
